﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common.Net.DesignByContract;

namespace ClearUnit.TestRunners.Starts
{
    public sealed class TypeRunStart : TestRunStart
    {
        readonly Type _type;

        public Type Type
        {
            get { return _type; }
        }

        public TypeRunStart(Type type)
        {
            RequireArg.NotNull(() => type);

            _type = type;
        }

        public override string ShortDescription
        {
            get { return string.Format("Start tests from type {0}", Type.Name); }
        }
    }
}
